<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWyTicketTalentAuditTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wy_ticket_talent_audit', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 50)->comment('申请人姓名');
            $table->string('mobile', 20)->comment('用户提交预约时所留的手机号');
            $table->integer('age')->comment('申请人年龄');
            $table->tinyInteger('sex')->comment('1 .男 2. 女');
            $table->string('education', 10)->comment('1.本科2.大专3中专4高中5本科以上');
            $table->integer('position_id')->comment('应聘职位id（对应门店职位表id');
            $table->integer('referrer_id')->comment('推荐人id');
            $table->integer('merchant_id')->comment('门店id');
            $table->tinyInteger('status')->default(0)->comment('订单处理状态 0待处理，1待面试，2待通过，3. 不通过4.待入职5.已入职6.已离职');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wy_ticket_talent_audit');
    }
}
